import execjs
import json

item = {
    'name': '凯文-杜兰特',
    'image': 'durant.png',
    'birthday': '1988-09-29',
    'height': '208cm',
    'weight': '108.9KG'
}

with open('crypto.js', 'r', encoding='utf-8') as f:
    jc_code = f.read()
node = execjs.get()
ctx = node.compile(jc_code)

js = f"getToken({json.dumps(item, ensure_ascii=False)})"
print(js)
result = ctx.eval(js)
print(result)